From: Keir Fraser Date: Fri, 11 Jul 2008 11:46:33 +0000 (+0100) Subject: vt-d: Fix Host Address Width X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14188^2~44 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=7acbaf60a917f48fb551b21086d9c6ef34705de6;p=xen.git vt-d: Fix Host Address Width Host Address Width of the platform should be computed as N+1, where N is the value reported in dmar acpi table. Signed-off-by: Ameya Palande <2ameya@gmail.com> --- diff --git a/xen/drivers/passthrough/vtd/dmar.c b/xen/drivers/passthrough/vtd/dmar.c index 7f47b06977..a6876ec6a3 100644 --- a/xen/drivers/passthrough/vtd/dmar.c +++ b/xen/drivers/passthrough/vtd/dmar.c @@ -400,7 +400,7 @@ static int __init acpi_parse_dmar(struct acpi_table_header *table) return -EINVAL; } - dmar_host_address_width = dmar->width; + dmar_host_address_width = dmar->width + 1; dprintk(XENLOG_INFO VTDPREFIX, "Host address width %d\n", dmar_host_address_width);